/*
 * @Author: 撒哈拉的花儿 30940518@qq.com
 * @Date: 2024-11-12 21:23:39
 * @LastEditors: 撒哈拉的花儿 30940518@qq.com
 * @LastEditTime: 2024-12-01 14:04:15
 * @FilePath: \bl_portal_foreend\src\api\bl\order\order.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询订单信息列表
export function listOrder(query) {
  return request({
    url: '/bl/order/list',
    method: 'get',
    params: query
  })
}

// 查询订单信息详细
export function getOrder(orderId) {
  return request({
    url: '/bl/order/' + orderId,
    method: 'get'
  })
}

// 新增订单信息
export function addOrder(data) {
  return request({
    url: '/bl/order',
    method: 'post',
    data: data
  })
}

// 修改订单信息
export function updateOrder(data) {
  return request({
    url: '/bl/order',
    method: 'put',
    data: data
  })
}

// 删除订单信息
export function delOrder(orderId) {
  return request({
    url: '/bl/order/' + orderId,
    method: 'delete'
  })
}

// 查询订单信息列表
export function listMerchantOrder(query) {
  return request({
    url: '/bl/order/merchantList',
    method: 'get',
    params: query
  })
}
